package com.qcby.Mapper;

import com.qcby.Entity.TrainStation;
import com.qcby.query.TrainStationQuery;

import java.util.List;

public interface TrainStationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TrainStation record);

    int insertSelective(TrainStation record);

    TrainStation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TrainStation record);

    int updateByPrimaryKey(TrainStation record);

    List<TrainStation> findStationByCityId(Integer id);
    int getStationNumByStationName(TrainStation trainStation);
    List<TrainStation> getAllStations();
    TrainStationQuery getStationWithCity(Integer id);
}